1. Create a new custom executable by selecting Project -> New Custom Executable from the menu bar.



2. Choose a name for the executable and set Executable Path: to /Applications/Pd-0.42-5.app/Contents/Resources/bin/pd.



3. Set a breakpoint. In this example line 17 will break on float input.



4. Debug the target by selecting Build -> Build and Debug - Breakpoints On from the menu bar.



5. Once Pd opens, instantiate obj1 and send it a float to trigger the breakpoint. Clicking the green continue button in Xcode will resume Pd's execution.